package bd403.Backend;

import bd403.utils.DrinkDBStub;


/* A Stub DrinkStorage used for testing. Includes additional functionality to clear drinks
 * from the database, and use a testing database.
 * Main author: Justin Hon Lee
 */

public class DrinkStorageStub extends DrinkStorage {

	public DrinkStorageStub() {
		super();
	}
	
	/* Clears all the Drinks from drinkMap. Used for UNIT Testing.*/
	public void clearDrinks() {
		drinkMap.clear();
		DrinkDBStub.getInstance().clearDB();
	}
	
	/*Switches to the Stub DB so that the DB can continually be cleared. Used for UNIT Testing */
	public void switchToStubDB() {
		dbConn = DrinkDBStub.getInstance();
	}
}
